package com.it.park.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.LinkService;
import com.it.park.dao.LinkMapper;
import com.it.park.model.Link;

@Service("linkService")
public class LinkServiceImpl  extends BaseServiceImpl<Link> implements LinkService {
	
	@Autowired
	private LinkMapper linkMapper;

	@Override
	public boolean insert(Link link) {
		return linkMapper.insert(link) == 1;
	}
	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return linkMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(Link record) {
		return linkMapper.insertSelective(record)==1;
	}
	@Override
	public Link selectByPrimaryKey(Integer id) {
		return linkMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(Link record) {
		return linkMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(Link record) {
		return false;
	}
	@Override
	public List<Link> selectAll() {
		return linkMapper.selectAll();
	}
	@Override
	public List<Link> selectPagination(Map<String, Object> map) {
		return linkMapper.selectPagination(map);
	}
	@Override
	public Integer selectTotal(Map<String, Object> map) {
		return linkMapper.selectTotal(map);
	}
	@Override
	public boolean updateByPrimaryKeyWithBLOBs(Link record) {
		return false;
	}
	@Override
	public List<Link> selectPagination(Link t) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Integer selectTotal(Link t) {
		// TODO Auto-generated method stub
		return null;
	}
	

}
